package com.cindata

class RiskWarningConfigRule {

	String name
	Component component
	String description

	Integer priority

	static belongsTo = [riskWarningConfig: RiskWarningConfig]

	static mapping = {
		autowire true
	}

    static constraints = 
    {
    	name maxSize: 50, blank: false, unique: true
    	priority nullable: false, blank: false
        priority unique: ['riskWarningConfig']
    	description maxSize: 200
    }
}